package com.example.bbs.service;


import com.example.bbs.model.Post;

import java.util.List;

/**
 * @auther: zhangxin
 * @Description:
 */
public interface PostService {

    List<Post> findPostByBlockId(int blockId);

    boolean addPost(Post post);

    List<Post> findPostByUserId(int userId);

    boolean deletePost(Post post);
    boolean updatePost(Post post);

    Post getPostById(int postId);
}
